package com.hb.trade.server.project.section.service.raw.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hb.core.pojo.parent.PageResult;
import com.hb.core.pojo.project.section.dto.InquiryDTO;
import com.hb.core.pojo.project.section.entity.Inquiry;
import com.hb.core.pojo.project.section.mapper.InquiryMapper;
import com.hb.trade.server.project.section.service.raw.InquiryService;
import org.springframework.stereotype.Service;

/**
 * @author yyx
 * @date 2022/5/16
 * @desc 询标及回复
 */
@Service
public class InquiryServiceImpl extends ServiceImpl<InquiryMapper, Inquiry> implements InquiryService {

    @Override
    public PageResult<InquiryDTO> listAll(final InquiryDTO inquiryDTO) {
        final Page<InquiryDTO> page = this.baseMapper.listAll(inquiryDTO.pages());
        return PageResult.get(page);
    }
}
